package com.dms.modules.message.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("chat_message")
@ApiModel(value = "聊天消息实体")
public class ChatMessage {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("消息ID")
    private Long id;

    @ApiModelProperty("发送者ID")
    private Long senderId;

    @ApiModelProperty("接收者ID")
    private Long receiverId;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息类型：1-文本，2-图片，3-语音")
    private Integer type;

    @ApiModelProperty("消息状态：0-未读，1-已读")
    private Integer status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
} 